/*    */ package com.openbravo.pos.forms;
/*    */ 
/*    */ import com.openbravo.basic.BasicException;
/*    */ import javax.swing.JComponent;
/*    */ import javax.swing.JLabel;
/*    */ import javax.swing.JPanel;
/*    */ import javax.swing.JScrollPane;
/*    */ import javax.swing.JTextArea;
/*    */ 
/*    */ public class JPanelNull extends JPanel
/*    */   implements JPanelView
/*    */ {
/*    */   private JScrollPane jscrException;
/*    */   private JTextArea jtxtException;
/*    */   private JLabel m_jLabelError;
/*    */ 
/*    */   public JPanelNull(AppView oApp, Object o)
/*    */   {
/* 35 */     initComponents();
/* 36 */     if ((o instanceof Exception)) {
/* 37 */       ((Exception)o).printStackTrace();
/*    */     }
/* 39 */     this.jtxtException.setText(o.toString());
/*    */   }
/*    */ 
/*    */   public JComponent getComponent() {
/* 43 */     return this;
/*    */   }
/*    */   public String getTitle() {
/* 46 */     return null;
/*    */   }
/*    */   public void activate() throws BasicException {
/*    */   }
/*    */   public boolean deactivate() {
/* 51 */     return true;
/*    */   }
/*    */ 
/*    */   private void initComponents()
/*    */   {
/* 61 */     this.m_jLabelError = new JLabel();
/* 62 */     this.jscrException = new JScrollPane();
/* 63 */     this.jtxtException = new JTextArea();
/*    */ 
/* 65 */     setLayout(null);
/*    */ 
/* 67 */     this.m_jLabelError.setText(AppLocal.getIntString("Label.LoadError"));
/* 68 */     add(this.m_jLabelError);
/* 69 */     this.m_jLabelError.setBounds(30, 30, 490, 20);
/*    */ 
/* 71 */     this.jtxtException.setEditable(false);
/* 72 */     this.jtxtException.setLineWrap(true);
/* 73 */     this.jtxtException.setWrapStyleWord(true);
/* 74 */     this.jscrException.setViewportView(this.jtxtException);
/*    */ 
/* 76 */     add(this.jscrException);
/* 77 */     this.jscrException.setBounds(30, 70, 550, 180);
/*    */   }
/*    */ }

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.forms.JPanelNull
 * JD-Core Version:    0.6.0
 */